<template>
    <div class="top">
        <img src="../assets/01.jpg">
        <input v-model="panduan" @keyup.enter="tiaozhuan">
       
    </div>
</template>

<script>

export default{
    data(){
        return{
            panduan:''
        }
    },
    methods:{
        tiaozhuan(){
            
            if(this.panduan==""){
                this.$message.warning('adada')
             
            }else{

                // this.$router.push("/serchxq")
                //  this.$router.push('/serchxq?q=${this.panduan}')
               this.$router.push("/serchxq?q="+this.panduan)

            }
        }
    }
    
}
</script>

<style>
   
   .top{
       display: flex;
       align-items: center;
       background: #f9f9f9;
       }

</style>